home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / public / SciAn / src / ScianFontSystem.h < prev    next >
C/C++ Source or Header  |  1994-08-01  |  1KB  |  55 lines

  1. /* constants for user interface font/size combinations */
  2.  
  3. #define UIMENUFONT    0
  4. #define UISMALLFONT    1
  5. #define UINORMALFONT    2
  6. #define UILARGEFONT    3
  7. #define UITITLEFONT    4
  8. #define UIBOLDSMALLFONT    5
  9. #define UIBOLDNORMALFONT    6
  10. #define UIBOLDLARGEFONT    7
  11. #define UIBOLDTITLEFONT    8
  12. #define NUIFONTS    9
  13.  
  14. struct fontinfo
  15.         {
  16.                 char *name;
  17.                 int size;
  18.                 char **fontHandle;
  19.         };
  20. extern struct fontinfo uiFontInfo[];
  21. extern char curFontName[];
  22. extern int curFontSize;
  23.  
  24. extern char *fontsUsed[];
  25. extern int numFontsUsed;  /* number used so far = next index to use */
  26.  
  27. /* prototypes for common SciAn font routines */
  28.  
  29. void InitFonts(void);
  30. void KillFonts(void);
  31.  
  32. #ifdef PROTO
  33.  
  34. Bool SetupFont(char *name, int size);
  35. void SetUIFont(int);
  36. void RegisterFontUsed(char *name);
  37. int ChrWidth(char c);
  38. int StrWidth(char *s);
  39. void DrawAString(int, long x, long y, char *s);
  40.  
  41. #else
  42.  
  43. Bool SetupFont();
  44. void SetUIFont();
  45. void RegisterFontUsed();
  46. int ChrWidth();
  47. int StrWidth();
  48. void DrawAString();
  49.  
  50. #endif
  51.  
  52. extern char **fonts;
  53. extern int nFonts;
  54.  
  55.